package com.itheima.stringdemo;

public class StringDemo10 {
    public static void main(String[] args) {
        String phone = "12345678901";
        String phone1 = phone.substring(0, 3);
        String phone2 = phone.substring(7);
        String newPhone = phone1 + " **** " + phone2;
        System.out.println(newPhone);
    }
}
